package com.yb.xczx.cloud.system.task;


import com.alibaba.fastjson2.JSONObject;
import com.yb.xczx.cloud.system.entity.Dictionary;
import com.yb.xczx.cloud.system.service.IDictionaryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Component
@Slf4j
public class DictionaryTask implements ApplicationRunner {

    @Autowired
    IDictionaryService dictionaryService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        dictionaryService.listCache();
    }
}
